home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / docs / fpgawkii / compare.pds < prev    next >
Text File  |  1995-02-15  |  839b  |  32 lines

  1. ; This example demonstrates situations
  2. ; where the PLDshell design compiler can
  3. ; and cannot fit a design to the EPX780
  4. ; due to constraints on the comparator.
  5. ; Essentially, only one comparator can be
  6. ; used in each CFB.
  7. ;
  8. ; SET COMPILER OPTIONS TO:
  9. ;  Use Design Pin Assignments, but not
  10. ;               Previous, Abort on no fit
  11.  
  12. CHIP product NFX780_84
  13.  
  14. PIN    a[0:7]  ; eight inputs
  15. PIN 82 o1      ; first comparator output
  16.  
  17. ; this is a second comparator output in the
  18. ; same CFB as o1.  It won't fit!
  19. ;PIN 83 o2      ; second comparator output
  20.  
  21. ; this is a second comparator output in a
  22. ; DIFFERENT CFB from o1.  It will fit!
  23. PIN 7 o2       ; second comparator output
  24.  
  25. EQUATIONS
  26.  
  27. ; here's a 4-bit comparison
  28. o1.CMP = [a[0:3]] == [a[4:7]]
  29.  
  30. ; here's another 2-bit comparison
  31. o2.CMP = [a[0:1]] == [a[2:3]]
  32.